import request from "@/utils/http";

export const getPreOrderAPI = () => {
  return request({
    url: "/member/order/pre",
  });
};

export const createOrderAPI = (data) => {
  return request({ url: "/member/order", data, method: "post" });
};

// 1.
export const payOrederAPI = (orderId) => {
  return request({
    url: "/pay/wxPay/miniPay",
    data: {
      orderId,
    },
  });
};
